Skip to content

Conversation

@jonchang
Copy link

Compilation fails on clang due to a naming clash:

/tmp/mpboot-20200316-35235-1sckd9h/mpboot-1.1.0-Source/optimization.cpp:638:5: error: reference to 'vector' is ambiguous
        dg=vector(1,n);
           ^
/tmp/mpboot-20200316-35235-1sckd9h/mpboot-1.1.0-Source/optimization.cpp:99:9: note: candidate found by name lookup is 'vector'
double *vector(long nl, long nh)
        ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd:217:28: note: 
      candidate found by name lookup is 'std::__1::vector'
class _LIBCPP_TEMPLATE_VIS vector;
                           ^

This pull request renames vector in optimization.cpp to avoid the conflict.

magnified103 pushed a commit to magnified103/mpboot that referenced this pull request Dec 8, 2024
fix: Improve checkpoint functionalities
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant